import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/Home.vue'
import My from '@/pages/My.vue'
import LoginMy from '@/pages/LoginMy.vue'
import Login from '@/secondpage/Login.vue'
import Regist from '@/thirdpage/Regist.vue'
import ViewList from '@/secondpage/ViewList.vue'
import ViewListTwo from '@/secondpage/ViewListTwo.vue'
import AllTheme from '@/secondpage/AllTheme.vue'
import Search from '@/secondpage/Search.vue'
import Detail from '@/thirdpage/Detail.vue'
import Order from '@/thirdpage/Order.vue'
import Pay from '@/thirdpage/Pay.vue'
import Qrcode from '@/thirdpage/Qrcode.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Home
    },
    {
      path: '/my',
      component: My
    },
    {
      path: '/loginmy',
      component: LoginMy
    },
    {
      path: '/my/login',
      component: Login
    },
     {
      path: '/my/login/regist',
      component: Regist
    },
    {
      path: '/my/viewlist/:value',
      component: ViewList
    },
    {
      path: '/my/allTheme',
      component: AllTheme
    },
    {
      path: '/my/search',
      component: Search
    },
     {
      path: '/my/search/viewlisttwo/:value',
      component: ViewListTwo
    },
    {
      path: '/my/search/viewlisttwo/detail/:value',
      component: Detail
    },
    {
      path: '/my/detail/:value',
      component: Detail
    },
    {
      path: '/my/viewlist/detail/:value',
      component: Detail
    },
    {
      path: '/my/viewlist/detail/order/:val1/:val2',
      component: Order
    },
    {
      path: '/my/viewlist/detail/order/pay',
      component: Pay
    },
    {
      path: '/my/viewlist/detail/order/code',
      component: Qrcode
    },

  ]
})
